package cn.cqie.attendance.teacher.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @author luwei
 * @date 2021/6/22 - 13:56
 */
@Data
@Accessors(chain = true)
@ApiModel(value="Attendance对象", description="")
public class TeacherPunch implements Serializable {

    private static final long serialVersionUID = -6076396448222680984L;

    @ApiModelProperty(value = "学生姓名 stuName")
    private String stuName;

    @ApiModelProperty(value = "学生学号 stuNumber")
    private String stuNumber;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "签到打卡时间 signinTime")
    private String signinTime;

    @ApiModelProperty(value = "打卡设备 punchDevice")
    private String punchDevice;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "打卡日期 punchDate")
    private String punchDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "开始时间 startTime")
    private String startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "截止时间 endTime")
    private String endTime;
}
